/**
  @file klhttp.c
  @author Kevin Lynx
  @date 7.29.2008
  @brief the interface of klhttpd ( an simple embeded http server )

*/
#include "http.h"
#include "http-internal.h"
#include <malloc.h>
#include <event2/buffer.h>
#ifdef WIN32
#include <winsock2.h>
#endif


void disconnect_conn (struct http_connection *conn ){
	shutdown( conn->fd, SHUT_RDWR );
	close(conn->fd);
	if(conn->inbuf) evbuffer_free( conn->inbuf );
	if(conn->outbuf) evbuffer_free( conn->outbuf );
}
